package com.example.springbootshiro.model;

import java.util.HashSet;
import java.util.Set;

public class User
{
    private Integer uId;

    private String userName;

    private String password;

    private Set<Role> roles = new HashSet<>();

    public User()
    {
    }

    public User(String userName, String password)
    {
        this.userName=userName;
        this.password=password;
    }

    public User(Integer uId, String userName, String password)
    {
        this.uId=uId;
        this.userName=userName;
        this.password=password;
    }

    public Integer getuId()
    {
        return uId;
    }

    public void setuId(Integer uId)
    {
        this.uId=uId;
    }

    public String getUserName()
    {
        return userName;
    }

    public void setUserName(String userName)
    {
        this.userName=userName;
    }

    public String getPassword()
    {
        return password;
    }

    public void setPassword(String password)
    {
        this.password=password;
    }

    public Set<Role> getRoles()
    {
        return roles;
    }

    public void setRoles(Set<Role> roles)
    {
        this.roles=roles;
    }
}
